package cn.skyquant.quant4j.jforex.sdk.enums;

import java.io.PrintStream;

public enum  LogType {
    L1(1,"错误日志"),
    L2(2,"订单成交,平仓日志"),
    L3(3,"订单提交,成交,平仓日志"),
    L4(4,"调试日志");
    public final String desc;
    public final int level;
    LogType(int level,String desc){
        this.desc = desc;
        this.level = level;
    }
    public void println(int level, PrintStream out,String content){
        if(this.level >= level){
            out.println(content);
        }
    }

    @Override
    public String toString() {
        return level+"."+desc;
    }
}
